home *** CD-ROM | disk | FTP | other *** search
- Path: EU.net!sun4nl!xs4all!falstaff
- From: falstaff@xs4all.nl (Falstaff)
- Newsgroups: comp.lang.c
- Subject: Re: goto(x,y) ?
- Date: 20 Mar 1996 10:03:43 GMT
- Organization: XS4ALL, networking for the masses
- Distribution: inet
- Message-ID: <4iol5v$8sb@news.xs4all.nl>
- References: <NEWTNews.826227097.15421.mischap@ttserver> <4io7uq$fsl@eldorado.mirea.ac.ru>
- NNTP-Posting-Host: xs1.xs4all.nl
- X-Newsreader: NN version 6.5.0 #666 (NOV)
-
- eugene@exodus.mirea.ac.ru writes:
-
- >I prefer using ANSI sequenses
-
- Like this:
-
- void GotoXY(int x,int y)
- {
- printf("\033[%d,%dH",y,x);
- }
-
- void ClearScreen(void)
- {
- printf("\033[H\033[2J");
- }
- --
- The famous GIICM now on line: http://www.xs4all.nl/~falstaff/GIICM.html
- ------------------------------------------------------------------------
- Frank A. Vorstenbosch +31-(70)-355 5241 falstaff@xs4all.nl
-